package com.fengqianrun.bootframework.config.prop;

import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "setting")
public class IndexProp implements InitializingBean {

    private FileProp files;

    @Override
    public void afterPropertiesSet() throws Exception {
        files.init();
    }
}
